#ifndef __ERROR_H__
#define __ERROR_H__

#include <exception>
#include <string>

class Error : public std::exception {
	public:
		Error () throw() {text = "MineBombers Error: UNKNOWN";};
		Error (const std::string & str) throw() {text = "MineBombers Error: " + str;};
		Error (const std::string & str, const std::string & t) throw() {text = "MineBombers Error: " + str; add = t;};
		virtual ~Error() throw() {};
		const char * what() const throw() {return (text+add).c_str();};
	private:
		std::string text;
		std::string add;
};

#endif
